<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app1">
			<p>{{name}}</p>
		</div>
		<script type="text/javascript">
			var vm=new Vue({
				el:"#app1",
				data:{
					name:'mydemo'
				},
				//创建钩子
				created:function(){
					console.log("创建钩子");
				},
				mounted:function(){
					console.log("触发钩子");
				},
				updated:function(){
					console.log("更新钩子");
				}
			});
		</script>
	</body>
</html>
